@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-plus.scss';
@import './sidebar.scss';
@import './btn.scss';

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
  color: rgba(0, 0, 0, 0.65);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial,
    sans-serif;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

#app {
  box-sizing: border-box;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  outline: none;
  &:hover {
    outline: none;
  }
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  display: block;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  line-height: 32px;
  color: #2c3e50;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: $lightBlue;
    cursor: pointer;

    &:hover {
      color: $activeBlue;
    }
  }
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ellipsis-line2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.active-icon-color {
  color: $menuActiveText;
}
.hover-column {
  background: $tableHover;
}

.font-blue {
  color: $menuActiveText;
}

.pointer {
  cursor: pointer;
}

.relative {
  position: relative;
}

.badge {
  display: inline-block;
  width: 72px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: #fff;
  border-radius: 4px;
}
.badge-blue-status {
  background: #00c0ef;
  @extend .badge;
}
.badge-blue {
  background: #169bd5;
  @extend .badge;
}
.badge-green {
  background: #11a265;
  @extend .badge;
}
.badge-grey {
  background: #b5b5b5;
  @extend .badge;
}
.badge-red {
  background: #d32525;
  @extend .badge;
}
.badge-violet {
  background: #605ca8;
  @extend .badge;
}

/*=====  main-container全局样式  ======*/
.app-container {
  padding: 20px;
}
.search-section {
  display: flex;
  align-items: flex-start;

  & .el-form-item {
    margin-bottom: 8px;
  }
  .el-form-item--small .el-form-item__content {
    line-height: 30px;
  }
  .el-button--small {
    padding: 8px 15px;
    border-radius: 2px;
  }

  .form-textarea {
    overflow-y: auto;
    width: 200px;
    max-height: 32px;
    border: 1px solid #dcdfe6;

    &:hover {
      border-color: $activeBlue;
    }

    .el-textarea__inner {
      border: none;
    }
  }
}

// vue+elementui--$message提示框被dialog遮罩层挡住问题解决
// .messageZindex {
//   z-index: 3000 !important;
// }
